package com.ydy.service.center;

import com.ydy.pojo.OrderStatus;
import com.ydy.pojo.Orders;
import com.ydy.pojo.vo.MyOrdersVO;
import com.ydy.pojo.vo.OrderStatusCountsVO;
import com.ydy.utils.PageInfo;

import java.util.List;

public interface MyOrdersService {
    /**查询我的订单列表*/
    List<MyOrdersVO> queryMyOrders(String userId, Integer orderStatus, PageInfo pageInfo);

    /**订单状态 --> 商家发货*/
    void updateDeliverOrderStatus(String orderId);

    /**验证用户和订单是否匹配*/
    Orders checkUserOrder(String userId, String orderId);

    /**更新订单状态 —> 确认收货*/
    boolean updateReceiveOrderStatus(String orderId);

    /**删除订单（逻辑删除）*/
    boolean deleteMyOrder(String userId, String orderId);

    /**获得订单状态数概况*/
    OrderStatusCountsVO getOrderStatusCounts(String userId);

    /**查询订单动向*/
    List<OrderStatus> getOrdersTrend(String userId, PageInfo pageInfo);
}
